﻿using QFramework;

namespace HKTools
{
    public class CMD_InitQuizFromJson : AbstractCommand
    {
        string filePath;

        public CMD_InitQuizFromJson(string filePath)
        {
            this.filePath = filePath;
        }

        protected override void OnExecute()
        {
            if (string.IsNullOrEmpty(filePath))
            {
                HKDebug.LogError("文件路径不能为空！");
                return;
            }

            this.GetSystem<IHK_SimpleQuizSystem>().GetQuesDataFromJson(filePath);
        }
    }
}